
const ajax = new XMLHttpRequest();

ajax.open('POST', 'http://localhost:8899/api/users/login', true);

ajax.onload = function(){
    const res = JSON.parse(ajax.responseText);
    console.log(res);
}
ajax.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
// ajax.send('{"name":"zhangsan","age":"18"}');
ajax.send('name=zhangsan&age=18');
